package br.com.players.resource;

import java.util.List;

import javax.ws.rs.Consumes;
import javax.ws.rs.FormParam;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.MediaType;

import br.com.players.model.TImePlayerDTO;
import br.com.players.service.TimePlayerService;

@Path("/time")
public class TImePlayer {
	
	@GET
	@Path("/meusTimes")
	@Consumes(MediaType.APPLICATION_FORM_URLENCODED)
	@Produces(MediaType.APPLICATION_JSON)
	public List<TImePlayerDTO> cadastrarConviteParticipaTime(@QueryParam("idPlayer") String idPlayer) {
		return new TimePlayerService().listarMeusTimes(idPlayer);
	}
}
